package com.dnzx.model;

import java.util.List;

import org.apache.ibatis.type.Alias;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

@Alias("categoryBO")
@ApiModel(value = "CategoryBO 分类BO")
public class CategoryBO extends BaseBO {

	private static final long serialVersionUID = 1L;

	@ApiModelProperty(value = "编号")
    private String code;
    @ApiModelProperty(value = "名称")
    private String name;
    @ApiModelProperty(value = "价格")
    private double price;
    @ApiModelProperty(value = "上级ID")
    private Long pid;
    @ApiModelProperty(value = "链接地址")
    private String url;
    @ApiModelProperty(value = "状态")
    private String status = "1";
    @ApiModelProperty(value = "排序")
    private int sort;
    
    // 以下非数据库字段
    @ApiModelProperty(value = "上级名称")
    private String pname;
    
    @ApiModelProperty(value = "下级分类")
    private List<CategoryBO> subCategoryBOList;
    
	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public double getPrice() {
		return price;
	}

	public void setPrice(double price) {
		this.price = price;
	}

	public Long getPid() {
		return pid;
	}

	public void setPid(Long pid) {
		this.pid = pid;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getPname() {
		return pname;
	}

	public void setPname(String pname) {
		this.pname = pname;
	}

	public int getSort() {
		return sort;
	}

	public void setSort(int sort) {
		this.sort = sort;
	}

	public List<CategoryBO> getSubCategoryBOList() {
		return subCategoryBOList;
	}

	public void setSubCategoryBOList(List<CategoryBO> subCategoryBOList) {
		this.subCategoryBOList = subCategoryBOList;
	}
	
}

